package top.continew.admin.sport.model.query;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.enums.QueryType;

/**
 * 比赛项目 查询条件
 *
 * @author xiahaike
 * @since 2024/09/15 00:42
 */
@Data
@Schema(description = "比赛项目 查询条件")
public class ProjectQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 项目名称
     */
    @Schema(description = "项目名称")
    @Query(type = QueryType.EQ)
    private String name;

    /**
     * 规则介绍
     */
    @Schema(description = "规则介绍")
    @Query(type = QueryType.EQ)
    private String rule;

    /**
     * 比赛类型 
     */
    @Schema(description = "比赛类型 ")
    @Query(type = QueryType.EQ)
    private String type;

    /**
     * 男子/女子赛 
     */
    @Schema(description = "男子/女子赛 ")
    @Query(type = QueryType.EQ)
    private String gtype;

    /**
     * 裁判员数量
     */
    @Schema(description = "裁判员数量")
    @Query(type = QueryType.EQ)
    private Integer refereeNumber;

    /**
     * 比赛地点
     */
    @Schema(description = "比赛地点")
    @Query(type = QueryType.EQ)
    private String place;

    /**
     * 比赛时间
     */
    @Schema(description = "比赛时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime time;

    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    @Query(type = QueryType.EQ)
    private Integer isCancel;
}